//
//  AlibiInfo.m
//  CarHome
//
//  Created by lanou3g on 15-5-2.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "AlibiInfo.h"
#import "Specification.h"

@implementation AlibiInfo

- (instancetype)init
{
    self = [super init];
    if (self) {
        _specs = [[NSMutableArray alloc] initWithCapacity:0];
    }
    return self;
}

- (void)setSpecs:(NSMutableArray *)specs {
    for (NSMutableDictionary *item in specs) {
        Specification *s = [[Specification new] autorelease];
        [s setValuesForKeysWithDictionary:item];
        [_specs addObject:s];
    }
}

- (void)dealloc
{
    [_name release];
    [_specs release];
    
    [super dealloc];
}

@end
